<%@ include file="../common.jsp" %>



<br>
<hr/>
<br>

<table class="viewDetails">
	<tr class="heading"> <td colspan="14"> Reports </td> </tr>
	
	<tr class="even"> 
		<td> Name of Document </td>
		<td> Document Type </td>
		<td> Document Category </td>
		<td> Document Sub-Category </td>
		<td> Issuing Authority </td>
		<td> Owner Name </td>
		<td> Department </td>
		<td> Business Unit </td>
<!-- 		<td> Document entered with  </td> -->
		<td> Periodicity </td>
		<!-- <td> Status </td> -->
<!-- 		<td> Due on </td> -->
<!-- 		<td> Document Id </td> -->
		<td> Document Linked (Y/N) </td>
	</tr>
	<c:forEach  items="${resultOfSelect}" var="doc" varStatus="loop">
		<c:set var="tabColor" value="even"></c:set>
			<c:if test="${(loop.index % 2) eq 0}">
			  	<c:set var="tabColor" value="odd"></c:set>
			</c:if>
		<tr class="${tabColor}">		
			<td> ${doc[0]} </td>
			<td> ${typeMap[doc[1]]} </td>
			<td> ${catMap[doc[2]]} </td>
			<td> ${subCatMap[doc[3]]} </td>
			<td> ${doc[4]} </td>
			<td> ${doc[5]} </td>
			<td> ${deptMap[doc[6]]} </td>
			<td> ${locMap[doc[7]]} </td>
			<td> <c:choose>
				  	<c:when test="${doc[8] eq 'false'}"> LifeTime</c:when>
					<c:otherwise>Limited</c:otherwise>
				 </c:choose>
			</td>
			<td> ${doc[9]} </td>
			
		</tr>
	</c:forEach>

</table>

<!-- 
	 
	 
   -->